<%--
  Created by IntelliJ IDEA.
  User: SD
  Date: 2022/3/29
  Time: 15:54
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>登录页</title>
    <link rel="stylesheet" href="css/login.css">
    <script src="js/login.js"></script>
</head>
<body>
    <div class="title_div">
        <h1>学生登录系统</h1>

    </div>
    <div class="core_div">
        <form action="login" method="post">
            <table>
                <tr>
                    <td>用户名</td>
                    <td><input name="username" placeholder="请输入用户名"></td>
                </tr>
                <tr>
                    <td>密码</td>
                    <td><input type="password" name="password" placeholder="请输入密码">
                        <%
                            String status = request.getParameter("status");
                            if ("1".equals(status)){
                        %>
                        <span class="error">
                                        用户名或密码错误！
                        </span>
                        <%
                            }
                        %>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" style="text-align: center">
                        <button>登录</button>&nbsp;&nbsp;<button type="button" onclick="goRegister()">注册</button>
                    </td>
                </tr>
            </table>
        </form>
    </div>
</body>
</html>
